package com.ruoyi.equ.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备送检详情对象 equ_insplan
 * 
 * @author luguanqing
 * @date 2020-10-29
 */
public class EquInsplan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 送检明细id */
    private String id;

    /** 送检批次id */
    private String insId;


    /** 送检设备标识 */
    @Excel(name = "送检设备标识")
    private String equNum;

    /** 送检设备名称 */
    @Excel(name = "送检设备名称")
    private String equName;

    /** 送检设备型号规格 */
    @Excel(name = "送检设备型号规格")
    private String equModel;

    /** 证书有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "证书有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date equInvalidity;

    /** 送检时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "送检时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String equInstime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public String getInsId() {
        return insId;
    }

    public void setInsId(String insId) {
        this.insId = insId;
    }

    public void setEquNum(String equNum)
    {
        this.equNum = equNum;
    }

    public String getEquNum() 
    {
        return equNum;
    }
    public void setEquName(String equName) 
    {
        this.equName = equName;
    }

    public String getEquName() 
    {
        return equName;
    }
    public void setEquModel(String equModel) 
    {
        this.equModel = equModel;
    }

    public String getEquModel() 
    {
        return equModel;
    }
    public void setEquInvalidity(Date equInvalidity) 
    {
        this.equInvalidity = equInvalidity;
    }

    public Date getEquInvalidity() 
    {
        return equInvalidity;
    }
    public void setEquInstime(String equInstime)
    {
        this.equInstime = equInstime;
    }

    public String getEquInstime()
    {
        return equInstime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("insId", getInsId())
            .append("equNum", getEquNum())
            .append("equName", getEquName())
            .append("equModel", getEquModel())
            .append("equInvalidity", getEquInvalidity())
            .append("equInstime", getEquInstime())
            .append("remark", getRemark())
            .toString();
    }
}
